package com.kw.rabbittest.transaction.controller;


import com.kw.rabbittest.transaction.procuder.UserProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description todo
 * @CSDN https://blog.csdn.net/yxh13521338301
 * @Author： yanxh<br>
 * @Date 2020-06-29 14:36<br>
 * @Version 1.0<br>
 */
@RestController
@RequestMapping("/trans")
public class TransController {

    @Autowired
    private UserProducer userProducer;

    @RequestMapping("/send")
    public String send(){
        userProducer.send();
        return "success";
    }
}
